package org.nimi317.web_gis.form.post;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.nimi317.web_gis.Enum.RangeEnum;

/**
 * @author thunderobot
 */
@Data
public class QualityModelAddPost {
    @NotBlank
    @Pattern(regexp = "^[a-zA-Z0-9]+$")
    private String id;

    @NotNull
    @Min(value = 1, message = "模型ID必须大于0")
    private Integer modelId;

    @NotNull
    private RangeEnum type;
}
